Music Theory: Harmonizing A Melody